#include "RAT_Scene.h"

namespace RAT_ENGINE
{
	RAT_Scene::RAT_Scene() : id(0), url("")
	{
	}

	RAT_Scene::~RAT_Scene()
	{
	}

	void RAT_Scene::Init(int argID, std::string argURL)
	{
		id = argID;
		url = argURL;
	}

	void RAT_Scene::CleanUp()
	{
	}

	int RAT_Scene::GetID() const
	{
		return id;
	}

	std::string RAT_Scene::GetURL() const
	{
		return url;
	}

	RAT_EntityCustomModel* RAT_Scene::GetEntityCustomModel(int argID) const
	{
		return entityCustomModels[argID];
	}

	std::vector<RAT_EntityCustomModel*> RAT_Scene::GetEntityCustomModels() const
	{
		return entityCustomModels;
	}

	void RAT_Scene::AddEntityCustomModel(RAT_EntityCustomModel* argEntity)
	{
		entityCustomModels.push_back(argEntity);
	}

	void RAT_Scene::PrintIO() const
	{
		std::cout << "ID: " << id << "; URL: " << url << std::endl;
		std::cout << "Entities:" << std::endl;
		for (unsigned int i = 0; i < entityCustomModels.size(); ++i)
		{
			entityCustomModels[i]->PrintIO();
		}
	}
}